
import request from '@/utils/request';

// 查询列表
export async function queryDefaultSet(params) {
  return request('/b/strategycontrol/queryPageList', {
    method: 'POST',
    data: params,
  });
}
// 新增
export async function addDefaultSet(params) {
  return request('/b/strategycontrol/add', {
    method: 'POST',
    data: params,
  });
}

// 删除
export async function removeDefaultSet(params) {
  return request('/b/strategycontrol/delete', {
    method: 'POST',
    data: params,
  });
}

// 修改
export async function updateDefaultSet(params) {
  return request('/b/strategycontrol/update', {
    method: 'POST',
    data: params,
  });
}

// 绑定人员
export async function addStrategyUser(params) {
  return request('/b/strategycontrol/addStrategyUser', {
    method: 'POST',
    data: params,
  });
}

// 查询树形组织
export async function queryTreeOrgList(params) {
  return request('/b/strategycontrol/queryOrgTree', {
    method: 'POST',
    data: params,
  });
}

// 查询组织列表
export async function queryOrgList(params) {
  return request('/s/user/queryPageList', {
    method: 'POST',
    data: params,
  });
}

// 校验
export async function checkStrategyUser(params) {
  return request('/b/strategycontrol/checkStrategyUser', {
    method: 'POST',
    data: params,
  });
}

// 业务类型
export async function queryServerType(params) {
  return request('/b/strategycontrol/queryServerType', {
    method: 'POST',
    data: params,
  });
}


// 查已绑人员
export async function queryDetail(params) {
  return request('/b/strategycontrol/queryDetail', {
    method: 'POST',
    data: params,
  });
}


// 取消绑定
export async function cancelBindPerson(params) {
  return request('/b/strategycontrol/deleteByUserCode', {
    method: 'POST',
    data: params,
  });
}
